<?php
/**
 * 商户员工，可以使用后台。
 */
namespace Modules\Merchant\Entities;

use Modules\Merchant\Entities\Merchant;
use Encore\Admin\Auth\Database\Administrator;

class Staff extends Administrator
{
    protected $fillable = ['merchant_id', 'username', 'password', 'name', 'avatar', 'idcard'];

    public function merchant()
    {
        return $this->belongsTo(Merchant::class);
    }
}
